﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CCM.CronTaskScheduler {
    public class MemoryTaskRepository : ITaskRepository {
        private List<TaskDefinition> taskDefinitions;
        private Dictionary<TaskDefinition, RunStat> runCounts;
        private Dictionary<TaskDefinition, List<string>> schedules;

        public MemoryTaskRepository() {
            taskDefinitions = new List<TaskDefinition>();
            runCounts = new Dictionary<TaskDefinition, RunStat>();
            schedules = new Dictionary<TaskDefinition, List<string>>();
        }

        public List<TaskDefinition> AllTaskDefinitions {
            get {
                return taskDefinitions;
            }
        }



        public Dictionary<TaskDefinition, RunStat> RunStats {
            get { return runCounts; }
        }


        public Dictionary<TaskDefinition, List<string>> Schedules {
            get { return schedules; }
        }
    }
}
